public class ArraysReverse{
	public static void main(String[] args){
		int []arr1={1,2,3,4,5,6,7,8,9,10};
		for(int i=0;i<arr1.length/2;i++){
			int tem=arr1[i];
			arr1[i]=arr1[arr1.length-i-1];
			arr1[arr1.length-i-1]=tem;
		}
		for(int i=0;i<arr1.length;i++){
			System.out.print(arr1[i]+" ");
		}
	}
}